package com.waimai1.waimai.common;

public class BaseContext {
    private static ThreadLocal<String> openId = new ThreadLocal<>();
    private static ThreadLocal<String> phone = new ThreadLocal<>();
    private static ThreadLocal<String> name = new ThreadLocal<>();
    private static ThreadLocal<String> role = new ThreadLocal<>();
    private static ThreadLocal<Integer> acid = new ThreadLocal<>();
    //    用于上传excel文件白名单的区分weino
    private static ThreadLocal<String> wexinNo=new ThreadLocal<>();
    //    用于上传excel文件quanyi白名单的区分sort
    private static ThreadLocal<String> sort=new ThreadLocal<>();
    public static void setWexinNo(String no) {
        wexinNo.set(no);
    }
    public static String getWexinNo() {
        return wexinNo.get();
    }
    public static void setopenId(String id) {
        openId.set(id);
    }
    public static String getopenId() {
        return openId.get();
    }
    public static void setPhone(String number) {
        phone.set(number!=null?number:"");
    }
    public static String getPhone() {
        return phone.get();
    }
    public static void setName(String str) {
        name.set(str);
    }
    public static String getName() {
        return name.get();
    }
    public static void setRole(String r) {
        role.set(r);
    }
    public static String getRole() {
        return role.get();
    }
    public static void setSort(String r) {
        sort.set(r);
    }
    public static String getSort() {
        return sort.get();
    }
    public static void setAcid(int id) {
        acid.set(id);
    }
    public static Integer getAcid() {
        return acid.get();
    }
}
